/*
 * @Author: your name
 * @Date: 2021-10-11 11:12:23
 * @LastEditTime: 2021-11-03 11:11:00
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \datav\src\api\config.js
 */

// 此处配置 根访问路径 以及 全局错误处理
// 更多配置请根据业务逻辑自行实现

// 后端 API 地址，最好以 http(s):// 打头
let host = "";
if(process.env.NODE_ENV=='development'){
    // host = 'http://jdyjdy.vaiwan.com/quanzhou'
    host = 'http://jdy.natapp1.cc/quanzhou'
  }else{
    // host = 'http://jdyjdy.vaiwan.com/quanzhou'
    host = 'http://jdy.natapp1.cc/quanzhou'
}
export const httpUrl = host

export const errHandler = (e) => {
  console.error(e)
}
 